#include <stdio.h>

void _setbuf(FILE *restrict fp, char *restrict buf) {
    if (buf == NULL) {
        setvbuf(fp, NULL, _IONBF, 0);
        return;
    }
    setvbuf(fp, NULL, _IOFBF, 0);
}
